{
  Copyright 2012 Sergey Ostanin

  Licensed under the Apache License, Version 2.0 (the "License");
  you may not use this file except in compliance with the License.
  You may obtain a copy of the License at

      http://www.apache.org/licenses/LICENSE-2.0

  Unless required by applicable law or agreed to in writing, software
  distributed under the License is distributed on an "AS IS" BASIS,
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  See the License for the specific language governing permissions and
  limitations under the License.
}

unit ProfilesEditor;

interface

uses
  Classes, SysUtils, FileUtil, Forms, Controls, Graphics, Dialogs, ExtCtrls,
  Shape, ProfileList, ProfileViewer;

type
  TProfilesEditorFrame = class(TShapeFrame)
    pnlProfileList: TPanel;
    spVertical: TSplitter;
  private
    FProfileList: TProfileListFrame;
    FProfileViewer: TProfileViewerFrame;
    { private declarations }
  public
    procedure AfterConstruction; override;
    destructor Destroy; override;
    procedure Render;
    { public declarations }
  end;

implementation

{$R *.lfm}

{ TProfilesEditorFrame }

procedure TProfilesEditorFrame.AfterConstruction;
begin
  inherited;
  FProfileList := TProfileListFrame.Create(Shape.S['profileListEditor'], Dispatcher, pnlProfileList);
  FProfileViewer := TProfileViewerFrame.Create(Shape.S['profileViewer'], Dispatcher, Self);
end;

destructor TProfilesEditorFrame.Destroy;
begin
  FreeAndNil(FProfileList);
  FreeAndNil(FProfileViewer);
  inherited;
end;

procedure TProfilesEditorFrame.Render;
begin
  FProfileList.Render;
  FProfileViewer.Render;
end;

end.

